<?php
namespace app\admin\controller;

use app\BaseController;
use app\common\model\mysql\AdminUser;
use think\facade\Env;
use think\facade\View;
use think\facade\Log;
use think\facade\Session;

class Logout extends AdminBase
{

    /**
     * 登录页面
     * @return string
     * @throws \Exception
     */
    public function index()
    {
        Session::delete(config('admin.session_admin'));
        return redirect(url('admin/login/index'));
    }

}